﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:vm="clr-namespace:Ipmce.RemoteVoting.Frontend.VotingApplication.ViewModel" 
                    xmlns:vw="clr-namespace:Ipmce.RemoteVoting.Frontend.VotingApplication.View">
    <Style TargetType="Button">
        <Setter Property="Margin" Value="5"/>
    </Style>
    <Style TargetType="TextBox">
        <Setter Property="Margin" Value="5"/>
    </Style>

    <DataTemplate DataType="{x:Type vm:CertificateAuthorizationViewModel}">
        <vw:CertificateAuthorizationView/>
    </DataTemplate>
    <DataTemplate DataType="{x:Type vm:PassportAuthorizationViewModel}">
        <vw:PassportAuthorizationView/>
    </DataTemplate>

    <DataTemplate x:Key="CurrentDateTimeTemplate">
        <TextBlock Text="{Binding Path=Now}" />
    </DataTemplate>

</ResourceDictionary>